home *** CD-ROM | disk | FTP | other *** search
- /* Driver controller control block */
- struct driver {
- struct interface *iface;
- char *name;
- int port;
- int speed;
- int (*driver)();
- };
-
- extern struct driver driver[];
- extern unsigned ndriver;
-
- #define DRIVER_MAX 3
-
- #define SLIP_MODE 0
- #define UNKNOWN 1
-
- #define DRIVER_PUTBYTE 0
- #define DRIVER_GETBYTE 1
- #define DRIVER_PUTBLOCK 2
- #define DRIVER_GETBLOCK 3
- #define DRIVER_CHECKTX 4
- #define DRIVER_CHECKRX 5
- #define DRIVER_FLUSHTX 6
- #define DRIVER_FLUSHRX 7
- #define DRIVER_CONTROLLINES 8
- #define DRIVER_MODEMCONTROL 9
- #define DRIVER_RXERRORS 10
- #define DRIVER_BREAK 11
- #define DRIVER_EXAMINE 12
- #define DRIVER_TXSPEED 13
- #define DRIVER_RXSPEED 14
- #define DRIVER_WORDFORMAT 15
- #define DRIVER_FLOWCONTROL 16
- #define DRIVER_INITIALISE 17
- #define DRIVER_CLOSEDOWN 18
- #define DRIVER_POLL 19
- #define DRIVER_SELECT 20
-
- /* In DRIVER */
- int driver_attach(int, char **);
-